<?php
namespace app\admin\controller;
use app\admin\model\AuthGroup;
class Index
{
  public function index()
  {
    $model = new AuthGroup;
    $group = $model->find();
    $accesses = $group->group_accesses()->select();
    // var_dump($accesses);
    $ids = [];
    foreach ($accesses as $key => $access) {
      array_push($ids, $access['id']);
    }
  }
}
